Skip to content

BUG: Avoid copying uninitialized pixels in VectorIterationBenchmark#109

Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:BUG-VectorIterationBenchmark-avoid-copy-uninitialized-pixels
Apr 13, 2026
Merged

BUG: Avoid copying uninitialized pixels in VectorIterationBenchmark#109
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:BUG-VectorIterationBenchmark-avoid-copy-uninitialized-pixels

Conversation

@N-Dekker
Copy link
Copy Markdown
Collaborator

Following ITK pull request InsightSoftwareConsortium/ITK#5680
"BUG: Avoid copying uninitialized pixels in CastImageFilter"
@N-Dekker N-Dekker requested a review from blowekamp December 10, 2025 17:24
Copy link
Copy Markdown
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

OutputPixelType value(outputIt.Get());
for (unsigned int k = 0; k < componentsPerPixel; ++k)

if constexpr (isVariableLengthVector<OutputPixelType>)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐇

@blowekamp
Copy link
Copy Markdown
Member

Thank you for applying the bug fix here too. I was hoping to see the performance difference with the change, compare to the the original loop. Please merge if you are done with this change.

@hjmjohnson hjmjohnson merged commit 856eec4 into InsightSoftwareConsortium:master Apr 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants